package com.alibaba.system.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.alibaba.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 实体类：
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public class Menu extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private String name;
    private String component;
    private String url;
    private String icon;
    private Integer index;

    private String intro;
    private Boolean state;

    private Long parentId;
    private Menu parent;

    //用于封装当前部门子部门
    //部门树最后一级没有数据就不显示
   @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Menu> children=new ArrayList();
}
